package net.osweb.core.tools.utils;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

public class ResponseUtil {

	public static void setResponse(String flag, HttpServletResponse response) {
		PrintWriter out = null;
		try {
			out = response.getWriter();
			out.print("{success:" + flag + "}");
			out.flush();
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}
